style>

<template>
  <Schedule
    :courses="courses"
    :openclass="openclass"
    :teachercolor="teachercolor"
    :coursecolor="coursecolor"
    ></Schedule>
</template>

<script>
// import {}
// @ is an alias to /src
import course01 from '@/course/js/01'
import Schedule from '@/components/Schedule.vue'
export default {
  components: {
    Schedule
  },
  data () {
    return {
      coursecolor: {
        '一': 'primary'
        // '九':"danger",
        // '十':"warning",
      },
      teachercolor: {
        '莫老师': 'primary',
        '余老师': 'success',
        '张老师': 'danger',
        '钟老师': 'warning'
        // '厉老师':"info",
      },
      openclass: [
        // {
        //   date:'2019-04-23',
        //   teacher:'盛老师',
        //   content:'手写webpack源码',
        //   type:'open',
        // },
      ],
      courses: [
        {
          title: '全部'
          // data: course09,
          // startDate: "2019-03-15"
        },
        {
          title: '第一期',
          data: course01,
          startDate: '2019-04-17'
        }

      ]
    }
  }
}
</script>
